﻿<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <head>
        <meta charset="utf-8">
        <title>捐赠-绿色生活-自然与环境</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="description" content="Greenlife - Nature & Environmental Non-Profit HTML5 Template">
        <meta name="author" content="BlueWindLab">
        <link rel="shortcut icon" href="images/favicon.png" />


        <!-- The styles -->
        <link rel="stylesheet" href="css/bootstrap.min.css" />
        <link href="css/bootstrap-social.css" rel="stylesheet" type="text/css" >
        <link href="css/icon-styles.css" rel="stylesheet" type="text/css" >
        <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" >
        <link href="css/animate.css" rel="stylesheet" type="text/css" >
        <link href="css/owl.carousel.css" rel="stylesheet" type="text/css" >
        <link href="css/owl.carousel.css" rel="stylesheet" type="text/css" >
        <link href="css/venobox.css" rel="stylesheet" type="text/css" >
        <link rel="stylesheet" href="css/styles.css" />

    <body> 

        <div id="preloader">
            <span class="margin-bottom"><img src="images/loader.gif" alt="" /></span>
        </div>

        <!--  HEADER -->

        <header class="main-header clearfix">

            <div class="top-bar">

                <div class="container">

                    <div class="row clearfix">

                        <div class="col-md-6 col-sm-12">

                            <span class="top-phone-no">
                                <i class="fa fa-phone-square"></i> 
                                +093-120-525-9162
                            </span>

                            <span class="top-email-info">
                                <i class="fa fa-paper-plane"></i>
                                <a href="#">info@example.com</a>
                            </span>

                        </div> <!-- end col-sm-6  -->

                        <div class="col-md-6 col-sm-12 text-right hidden-xs top-donation-btn-container">

                          <a href="join.jsp" title="Donate Now" class="btn top-donate-btn" >加入我们</a>

                        </div> <!-- end col-sm-6  -->

                    </div> <!-- end .row  -->

                </div> <!--  end .container -->

            </div> <!--  end .top-bar  -->
            
           <section class="header-wrapper navgiation-wrapper">
            
                <div class="navbar navbar-default">         
                    <div class="container">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="logo" href="indexs.jsp"><img alt="" src="images/logo.png"></a>
                        </div>
                        <div class="navbar-collapse collapse">
                            <ul class="nav navbar-nav navbar-right">
                                <li class="drop">
                                    <a href="IndexsServlet" title="Home Layout 01">首页</a>
                                    <ul class="drop-down">
                                    </ul>
                                </li>
                                <li class="drop"><a href="GreenInformationServlet">页面</a>
                                    <ul class="drop-down">
                                        <li><a href="GreenInformationServlet" title="About Us">关于我们</a></li>
                                        <li class="drop"><a href=""galleryServlet">陈列室</a>
                                        </li>
                                        <li><a href="JuanServlet" title="Donation">捐赠物</a></li> 
                                        </li>
                                    </ul>
                                </li>
                                
                                <li>
                                    <a href="YuanServlet">原因</a>
                                    <ul class="drop-down">
                                    </ul>
                                </li>
                                
                                <li>
                                    <a href="ShiServlet">事件</a>
                                    <ul class="drop-down">
                                    </ul>
                                </li>
                               
                            </ul>
                        </div>
                    </div>
                </div>
                
            </section>


        </header> <!-- end main-header  -->
        <!--  PAGE HEADING -->

        <section class="page-header donation-header">

            <div class="container">

                <div class="row">

                    <div class="col-sm-12 text-center">


                        <h3>
                            捐赠
                        </h3>

                        <p class="page-breadcrumb">
                            <a href="join.jsp">首页</a> / 捐赠
                        </p>


                    </div>

                </div> <!-- end .row  -->

            </div> <!-- end .container  -->

        </section> <!-- end .page-header  -->
 
       <!--  MAIN CONTENT  -->
       
       <section class="section-content-block">
       
            <div class="container">
           
                    <div class="row">
    
                        <div class="col-sm-12">
                            
                            <div class="donation-form-wrapper">

                                <form action="#"  method="post" name="donation_form" class="donation_form " id="donation_form"> 

                                    <div class="donation-form-info-1">
                                        <h4>捐赠信息</h4>
                                        <p>我想捐一笔:</p>

                                        <label class="radio-inline"> <input type="radio" value="1000" id="amount_1" name="inlineRadioOptions"> $1,000 </label> 
                                        <label class="radio-inline"> <input type="radio" value="500" id="amount_2" name="inlineRadioOptions"> $500  </label> 
                                        <label class="radio-inline"> <input type="radio" value="100" id="amount_3" name="inlineRadioOptions"> $100 </label> 
                                        <label class="radio-inline"> <input type="radio" value="50" id="amount_4" name="inlineRadioOptions" checked> $50 </label> 

                                        <div class="radio">
                                            <label>
                                            
                                                捐赠项目: <div class="form-group">
                                            <label for="city" class="col-sm-2 control-label"> </label>
                                            <div class="col-md-6 col-sm-10">
                                                 <select id="city" name="xian">
                                                  <c:forEach items="${requestScope.Reason}" var="use">
                                                 <option selected="selected" value="${use.theme }">${use.theme }</option>
                                                 </c:forEach>
                                                 </select>
                                            </div>
                                        </div>
                                            </label>
                                        </div>

                                    </div> <!-- end .donation-form-info-1  -->

                                    <div class="donation-form-info-2">
                                        <h4>捐赠者信息</h4>
                                        <div class="form-group">
                                            <label for="first_name" class="col-sm-2 control-label">姓名: </label>
                                            <div class="col-md-6 col-sm-10">
                                                <input type="text" class="form-control" id="first_name" name="first_name" value="" placeholder="Enter 姓名"/>
                                            </div>
                                        </div>
                                        
                                        
                                        <div class="form-group">
                                            <label for="email" class="col-sm-2 control-label">Email: </label>
                                            <div class="col-md-6 col-sm-10">
                                                <input type="email" id="email" name="email" value="" class="form-control" placeholder="Enter xxxx@xx.com">
                                            </div>
                                        </div>
                                        
                                        <div class="form-group">
                                            <label for="address" class="col-sm-2 control-label">地址: </label>
                                            <div class="col-md-6 col-sm-10">
                                                <input type="text" class="form-control" id="address" name="address" value="" placeholder="Enter 地址">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="phone" class="col-sm-2 control-label">电话: </label>
                                            <div class="col-md-6 col-sm-10">
                                                <input type="text" class="form-control" id="phone" name="phone" value="" placeholder="Enter 电话">
                                            </div>
                                        </div>
                                        
                                        <div class="form-group">
                                            <label for="city" class="col-sm-2 control-label">国家: </label>
                                            <div class="col-md-6 col-sm-10">
                                                 <select id="city" name="country"><option selected="selected" value="中国">中国</option><option value="俄罗斯">俄罗斯</option><option value="美国">美国</option><option value="韩国">韩国</option><option value="日本">日本</option><option value="英国">英国</option><option value="">德国</option><option value="">塞尔维亚</option></select>
                                            </div>
                                        </div>
      
                                    </div> <!-- end .donation-form-info-2  -->

                                    <div class="donation-form-info-2">
                                        <input type="button" id="ss" name="donate_now" value="立即捐赠" class="btn btn-danger btn-lg btn-submit-donation"/>
                                    </div> <!-- end .donation-form-info-4   -->    


                                </form>

                            </div> <!--  end .donation-form-wrapper -->
                                
                   
                        </div> <!--  end col-sm-12  -->
                   
                    </div> <!-- end row  -->
               
            </div> <!--  end container -->
       
      </section> <!-- end .main-content  -->
      
      <!-- CLIENT LOGO SECTION  -->

        <section class="section-content-block section-secondary-bg section-client-logo">

            <div class="container wow fadeInUp">
                
                <div class="row">

                    <div class="col-md-8 col-md-offset-2 col-sm-12 text-center">
                        <h2 class="section-heading"><span>我们的</span> 捐赠者</h2>
                        <p class="section-subheading">
                            他们把全部牲畜交给开放的船队是痛苦的，他们会把土地留给雨水。
                        </p>
                    </div> <!-- end .col-sm-10  -->

                </div> <!--  end .row  -->

                <div class="row">

                    <div class="logo-items logo-layout-1 text-center">

                        <div class="logo">

                            <img src="images/logo_1.png" alt="" />

                        </div>

                        <div class="logo">

                            <img src="images/logo_2.png" alt="" />

                        </div>

                        <div class="logo">

                            <img src="images/logo_3.png" alt="" />

                        </div>

                        <div class="logo">

                            <img src="images/logo_4.png" alt="" />

                        </div>

                        <div class="logo">

                            <img src="images/logo_5.png" alt="" />

                        </div>


                    </div> <!-- end .testimonial-container  -->

                </div> <!-- end row  -->

            </div> <!-- end .container  -->

        </section> <!--  end .section-client-logo -->
       
       
    
        
       <!-- FOOTER  -->
        
       <footer>
        <!-- FOOTER WIDGET AREA -->

            <section class="section-content-block footer-widget-area-bg">
                <div class="container">
                    <div class="row">
                        
                        <div class="col-md-4 col-sm-12">
                            <div class="footer-widget-area">
                               <h3>关于我们</h3>
                                <div class="contact-info divider-line">
                                <p>走进明日，从今天开始。共建绿色家园，迈向可持续未来！</p>
                                </div>
                                <div class="contact-info">
                                    <div class="contact-heading">跟随我们:</div>
                                    <div class="contact-details">
                                        <div class="social-icons">
                                            <a href="#">
                                            <i class="fa fa-facebook"></i>
                                            </a>
                                            <a href="#">
                                            <i class="fa fa-twitter"></i>
                                            </a>
                                            <a href="#">
                                            <i class="fa fa-pinterest-p"></i>
                                            </a>
                                            <a href="#">
                                            <i class="fa fa-instagram"></i>
                                            </a>
                                            <a href="#">
                                            <i class="fa fa-linkedin"></i>
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div> <!-- end .col-md-4  -->

                    

                        <div class="col-md-4 col-sm-4">
                            <div class="footer-widget-area">
                                <h3>联系我们</h3>
                                <div class="contact-info divider-line">
                                    <div class="contact-heading">地址:</div>
                                    <div class="contact-details">
                                   中国四川省,
                                    <br>
                                  成都信息工程大学
                                    </div>
                                </div>
                                <div class="contact-info divider-line">
                                    <div class="contact-heading">电话:</div>
                                    <div class="contact-details">
                                    (+1)755-650-5212 - office
                                    </div>
                                </div>
                                <div class="contact-info">
                                    <div class="contact-heading">邮箱:</div>
                                    <div class="contact-details color-primary">
                                        <a href="mailto:admin@bluewindlb.net">info@bluewindlab.net</a>
                                    </div>
                                </div>
                            </div>
                        </div> <!-- end .col-md-4  --> 
                    </div> <!-- end .row  --> 
                </div> <!-- end .container  -->
            </section> <!--  end .footer-widget-area-bg -->

            <!--FOOTER CONTENT  -->

            <section class="footer-section">
                <div class="container">
                    <div class="row">
                        <div class="col-md-6 col-sm-12">
                             <span>
                            Copyright © 2024.保留所有权利
                            <a class="color-primary" href="http://www.bootstrapmb.com/">bluewindlab.net</a>
                            </span>
                        </div> <!-- end .col-md-6  --> 
                      
                    </div> <!-- end .row  --> 
                </div> <!-- end .container  --> 
            </section>  <!--  end .footer-area -->
            
        </footer> <!--  end of footer -->

        <!-- Back To Top Button  -->

        <a id="backTop">返回顶部</a>
       
       <script src="js/jquery.min.js"></script>
       <script src="js/bootstrap.min.js"></script>
       <script src="js/wow.min.js"></script>
       <script src="js/jquery.backTop.min.js "></script>
       <script src="js/waypoints.min.js"></script>
       <script src="js/waypoints-sticky.min.js"></script>
       <script src="js/owl.carousel.min.js"></script>
       <script src="js/jquery.stellar.min.js"></script>
       <script src="js/jquery.counterup.min.js"></script>
       <script src="js/venobox.min.js"></script>
       <script src="js/custom-scripts.js"></script>
       <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>   
       
   </body>
   <script>
   $("#ss").bind("click",function(){
	   const email = $("#email").val();
       const regex = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;
       var phoneNumber = $("#phone").val();
       var regexs = /^1[3-9]\d{9}$/;
       
		if( $("#first_name").val() === '' ||$("#email").val() === ''||$("#address").val() === ''||$("#phone").val() === ''){
			alert("捐赠信息必须全部填写");
			return;
		  }else if(!regex.test(email)){	           
	            	alert("电子邮件地址无效");
	                return;
		  }else if(!regexs.test(phoneNumber)){
			  alert("手机号码必须是11位");
              return;
		  }
		else{
			  $ ("#donation_form").attr("action","donationUserServlet")
			  $("#donation_form").submit();
		  }
  });	 
   </script>

</html>